// JavaScript Document
lastScrollY=0;
function heartBeat(){ 
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
    diffY = document.documentElement.scrollTop;
else if (document.body)
    diffY = document.body.scrollTop
else
    {/*Netscape stuff*/}
    
//alert(diffY);
percent=.1*(diffY-lastScrollY); 
if(percent>0)percent=Math.ceil(percent); 
else percent=Math.floor(percent); 
document.getElementById("lovexin12").style.top=parseInt(document.getElementById("lovexin12").style.top)+percent+"px";
document.getElementById("lovexin14").style.top=parseInt(document.getElementById("lovexin14").style.top)+percent+"px";


lastScrollY=lastScrollY+percent; 
//alert(lastScrollY);
}
function ChatHidden(){
	document.getElementById("lovexin12").style.display='none';
	document.getElementById("lovexin14").style.display='';
}
function ChatShow(){
	document.getElementById("lovexin12").style.display='';
	document.getElementById("lovexin14").style.display='none';
}
function ChatClose(){
	document.getElementById("lovexin12").style.visibility='hidden';
	document.getElementById("lovexin14").style.display='none';
}
suspendcode12="<DIV id=\"lovexin12\" style='right:0px;POSITION:absolute;top:240px;display:none'><table width='460' border='0' cellpadding='0' cellspacing='0' class='mo_01' id='ChatHead'><tr><td height='35' colspan='4' background='bs_online/images/m_01.gif' bgcolor='#FFFFFF' ><div class='mo_02'><a href='#'onclick=\"ChatClose()\"><img src='bs_online/images/m_02.gif' width='16' height='15' border='0' /></a></div><div class='mo_02'><a  href='#' onclick='ChatHidden();'><img src='bs_online/images/m_04.gif' width='16' height='15' border='0' /></a></div></td></tr><tr><td height='1' colspan='4' bgcolor='#7777777' ></td></tr><tr><td width='460' colspan='4' ><div id='ChatBody'><iframe  src='bs_online/main.php' name='right'  marginheight='0' scrolling='0' frameborder='0' id='top' style='height:300px;width:460px;' ></iframe></div></td></tr></table></div>"
suspendcode14="<DIV id=\"lovexin14\" style='right:0px;POSITION:absolute;top:510px;'><table width=\"190\" height=\"59\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"mo_01\" id=\"ChatHead1\"><tr><td><a href=\"#\" onclick=\"ChatShow();\"><img src=\"bs_online/images/m_11.gif\" width=\"189\" height=\"34\" border=\"0\"></a></td></tr><tr><td height=\"25\" background=\"bs_online/images/m_12.gif\"><div class=\"mo_02\"><a href=\"#\"  onclick=\"ChatClose();\"><img src=\"bs_online/images/m_02.gif\" width=\"16\" height=\"15\" border=\"0\" /></a></div><div class=\"mo_02\"><a href=\"#\" onclick=\"ChatHidden();\"><img src=\"bs_online/images/m_04.gif\" width=\"16\" height=\"15\" border=\"0\" /></a></div></td></tr></table></div>"
document.write(suspendcode12); 
document.write(suspendcode14); 
window.setInterval("heartBeat()",1);
